package com.huabo.utils;

public enum CommonReturnCode implements ReturnCode{

	SUCCESS(200, "请求接口成功"),
	WARN(400, "接口参数不合法"),
	UNAUTHORIZED(401, "未认证(签名错误)"),
	NOT_FOUND(404, "接口不存在"),
	INTERNAL_SERVER_ERROR(500, "接口内部异常");
	
	private CommonReturnCode(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	private int code;
	
	private String message;
	
	@Override
	public int code() {
		return code;
	}

	@Override
	public String message() {
		return message;
	}

}
